<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>img 标签</title>
    <script src="js/img.js"></script>
</head>
<body>
    <img id="diagram" src="" alt="路径不对">
</body>
</html>